﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CPPEI.PM
{
    [Serializable]
    public class Project
    {
        public Guid Id { get; set; }
        public string Caption { get; set; }

        public int Changeset { get; set; }

        public List<WorkItemCategory> WorkItemCategoryList { get; private set; }

        public List<WorkItem> WorkItemList { get; private set; }

        public List<WorkSheet> WorkSheetList { get; private set; }

        public List<WorkStageItem> WorkStageItemList { get; private set; }
        public List<WorkStage> WorkStageList { get; private set; }

        /// <summary>
        /// 是否需要保存(本地)
        /// </summary>
        public bool IsNeedSave { get; set; }

        public Project()
        {
            WorkItemCategoryList = new List<WorkItemCategory>();
            WorkItemList = new List<WorkItem>();

            WorkSheetList = new List<WorkSheet>();

            WorkStageItemList = new List<WorkStageItem>();

            WorkStageList = new List<WorkStage>();
        }
    }
}
